package com.product.magina.wechatserver.entity;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AccessToken {

    // 错误code
    private Integer errcode;

    // 错误msg
    private String errmsg;

    // 获取到的凭证
    private String access_token;

    // 凭证有效时间，单位：秒
    private Long expires_in;

    @Override
    public String toString() {
        return "AccessToken{" +
                "errcode='" + errcode + '\'' +
                ", errmsg='" + errmsg + '\'' +
                ", access_token='" + access_token + '\'' +
                ", expires_in=" + expires_in +
                '}';
    }
}
